import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/index',
    name: 'Index',
    component: () => import('../views/Index.vue')
  },
  {
    path: '/a',
    name: 'Index',
    component: () => import('../views/test/a.vue')
  },
  {
    path: '/b',
    name: 'Index',
    component: () => import('../views/test/b.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
